#!/bin/bash

set -ex
rm -rf out

echo "build program...."
export PKG_CONFIG_PATH=${VCPKG_HOME}/packages/sqlite3_x64-linux/lib/pkgconfig
cmake -Bout \
  -GNinja \
  -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
  -DCMAKE_BUILD_TYPE=Debug \
  -DCMAKE_MODULE_PATH=/opt/ohos/cmake \
  -DCMAKE_TOOLCHAIN_FILE=${VCPKG_HOME}/scripts/buildsystems/vcpkg.cmake \
  -DPUMP_DEV_NUM=1

cmake --build out -j
